/********************************************************************************
 *      Copyright:  (C) HuangXiangming
 *                  All rights reserved.
 *
 *       Filename:  socket_reconnect.h
 *    Description:  This file is about client connect function 
 *
 *        Version:  1.0.0(25/04/03)
 *         Author:  Huang Xiangming <huangxiangming@gmail.com>
 *      ChangeLog:  1, Release initial version on "25/04/03 18:21:00"
 *                 
 ********************************************************************************/

//socket结构体
typedef struct socket_s
{
	int			sockfd;
	int			port;
	//char		*hostname;
	char        hostname[64];
	int         connected;
}socket_t;

//socket连接
//int socket_connect(int *sockfd, char *host, int port, int *connected);
int socket_connect(socket_t *sock);

//int socket_connect_cp(int *sockfd, int port,char *servip ,int *reconnect);

//读写函数
int read_write(int sockfd, char *str);

//命令行帮助信息
void print_usage(char *progname);

